{template '_header_base'}
<link type="text/css" rel="stylesheet" href="../web/static/mobapps/css/samples.css">
<style>
    .deg180{
        transform:rotate(180deg);
        -ms-transform:rotate(180deg); 	/* IE 9 */
        -moz-transform:rotate(180deg); 	/* Firefox */
        -webkit-transform:rotate(180deg); /* Safari 和 Chrome */
        -o-transform:rotate(180deg); 	/* Opera */
    }
	.header-wrapper>.nav li {
		float: left;
		position: relative;
		padding: 18px 25px 0 0;
		height: 50px;
	}
	.header-wrapper>.nav li a{
		display: block;
		font-weight: 700;
		color: #333;
		height: 35px;
		line-height: 20px;
		padding: 0 0 3px;
		transition: all .15s ease-in-out;
		
	}
	.page-content{
		<!-- overflow-x:hidden; -->
		<!-- overflow-y:auto; -->
	}
	.header-wrapper>.nav .active a{
		color: #f60;
		display: block;
		font-weight: 700;
		color: #333;
		height: 35px;
		line-height: 20px;
		padding: 0 0 3px;
		border-bottom: 3px solid #f60;
		transition: all .15s ease-in-out;
	}
	.header-wrapper>.uls1  li.active>a, .header-wrapper>.uls1  li:hover>a {
		color: #f60;
		height: 32px;
		margin-top: 0px;
		border-bottom: 3px solid #f60;
	}
	.header {
		height: 50px;
		border-bottom: 1px solid #ddd;
		background-color: #fff;
		width: 100%;
		min-width: 1200px;
		z-index: 1000;
	}
	h2 i{
		margin-right: 5px;
		color: #f60;
	}
.yingyong {
    overflow-x: hidden;
    overflow-y: auto;
}
	
</style>
<div class="navbar-collapse collapse header-wrapper header" id="navbar">
    {php $routes = explode(".", $GLOBALS['_W']['routes']);}
    {if $routes[0] != 'system' }
    <ul class="nav navbar-nav uls1 gray-bg">
<!-- echo "<pre>"; var_dump($_W);die; -->
        <!-- <li {if $_W['controller']=='shop'} class="active"{/if}><a href="{php echo webUrl()}">首页</a></li> -->
        <!-- {ifp 'goods'}<li {if $_W['controller']=='goods'} class="active"{/if}><a href="{php echo webUrl('goods')}"> 商品</a></li>{/if} -->
        <!-- {ifp 'member'}<li {if $_W['controller']=='member'} class="active"{/if}><a href="{php echo webUrl('member')}"> 会员</a></li>{/if} -->
        <!-- {ifp 'order'}<li {if $_W['controller']=='order'} class="active"{/if}><a href="{php echo webUrl('order')}"> 订单</a></li>{/if} -->
        <!-- {if com('sale') || com('coupon')} -->
        <!-- {ifp 'sale'}<li {if $_W['controller']=='sale'} class="active"{/if}><a href="{php echo webUrl('sale')}">营销</a></li>{/if} -->
        <!-- {/if} -->
        <!-- {ifp 'finance'}<li {if $_W['controller']=='finance'} class="active"{/if}><a href="{php echo webUrl('finance/log/recharge')}"> 财务</a></li>{/if} -->

        <!-- {ifp 'statistics.sale'}<li {if $_W['controller']=='statistics'} class="active"{/if}><a href="{php echo webUrl('statistics')}">数据</a></li>{/if} -->
        <!-- {ifp $this->isOpenPlugin()}<li {if $_W['controller']=='plugins' || !empty($_W['plugin'])} class="active"{/if}><a href="{php echo webUrl('plugins')}">应用</a></li>{/if} -->

        <!-- {if p('diypage') && !empty($_W['shopset']['diypage']['setmenu'])}<li><a href="{php echo webUrl('diypage')}"> 页面</a></li>{/if} -->


      	<!-- {ifp 'sysset'}<li {if $_W['controller']=='sysset'} class="active"{/if}><a href="{php echo webUrl('sysset')}"> 设置</a></li>{/if} -->
		
		
		
		<!--改-->
      	<li {if $_W['controller']=='shop'} class="active"{/if}><a href="{php echo webUrl()}">商城</a></li>
      	<!-- <li  class="active"><a href="{php echo webUrl('sysset')}"> 供货商</a></li> -->
		
		{ifp 'goods'}<li {if $_W['controller']=='goods'} class="active"{/if}><a href="{php echo webUrl('goods')}"> 供货商</a></li>{/if}
		{ifp 'commission.agent'}<li {if $_W['plugin']=='commission'} class="active"{/if}><a href="{php echo webUrl('commission.agent')}"> 分销商</a></li>{/if}
      	<!-- <li {if $_W['plugin']=='abonus'} class="active" {/if}><a href="{php echo webUrl('abonus.agent')}"> 推客</a></li> -->
      	{ifp 'globonus'}<li {if $_W['plugin']=='globonus'} class="active"{/if}><a href="{php echo webUrl('globonus')}">合伙人</a></li>{/if}
      	{ifp 'member'}<li {if $_W['controller']=='member'} class="active"{/if}><a href="{php echo webUrl('member')}"> 会员</a></li>{/if}
      	{ifp 'creditshop'}<li {if $_W['plugin']=='creditshop'} class="active"{/if}><a href="{php echo webUrl('creditshop')}"> 积分</a></li>{/if}
      	<!-- <li  class="active"><a href="{php echo webUrl('sysset')}"> 积分</a></li> -->
      	{ifp 'finance'}<li {if $_W['controller']=='finance'} class="active"{/if}><a href="{php echo webUrl('finance/log/recharge')}">交易</a></li>{/if}
      	{ifp 'statistics.sale'}<li {if $_W['controller']=='statistics'} class="active"{/if}><a href="{php echo webUrl('statistics')}">数据中心</a></li>{/if}
      	<li {if $_W['controller']=='sale'} class="active" {/if}><a href="{php echo webUrl('sale.enough')}"> 增销计划</a></li>
      	<!-- <li  class="active"><a href="{php echo webUrl('sysset')}"> 微信</a></li> -->
      	<!-- <li  class="active"><a href="{php echo webUrl('sysset')}"> APP</a></li> -->
		<!-- {ifp 'sysset'}<li {if $_W['controller']=='sysset'} class="active"{/if}><a href="{php echo webUrl('sysset')}">基础设置</a></li>{/if} -->
		<li {if $_W['controller']=='perm'} class="active" {/if}><a href="http://ddk.ceshi.zaiyoudao.com/web/index.php?c=site&a=entry&m=ewei_shopv2&do=web&r=perm.role"> 权限管理</a></li>
      	<li {if $_W['controller']=='qa.question'} class="active" {/if}><a href="{php echo webUrl('qa.question')}"> 华企帮助</a></li>
		{ifp 'sign'}
        <li {if $_W['action']=='exchange'}class="active"{/if}><a href="{php echo webUrl('exchange')}">兑换中心</a></li>
		<li {if $_W['action']=='task'}class="active"{/if}><a href="{php echo webUrl('task')}">任务中心</a></li>
		<li {if $_W['action']=='sns'}class="active"{/if}><a href="{php echo webUrl('sns')}">活动社区</a></li>
		<li {if $_W['action']=='perm/role'}class="active"{/if}><a href="{php echo webUrl('perm/role')}">分权管理</a></li>
	  {/if}
    </ul>
	
	
	{if $_W['controller']=='shop'}
    
	<style>
		.uls2{
			    background-color: #333;
				color:#fff;
		}
		.uls2 li{
			padding:0;
			margin:0;
			width:100%;
		}
		.uls2 li {
			float: left;
			position: relative;
			padding:0;
			height: 60px;
			overflow: hidden;
		}
		.uls2 li a{
				color:#fff;
				display:block;
				width:100%;
				height:100%;
		}
		.uls2 li p{
			text-align:center;
			color:rgba(255,255,255,.8);
			font-size: 12px;
			line-height: 1.5em;
		}
		.uls2 .active a{
			text-align: center;
			display: block;
			width:100%;
			height:100%;
			color: #fff;

		}
		.uls2 .active{
			background-color: rgba(255,255,255,.2);
		}
		.nav>li>a:focus, .nav>li>a:hover {
			text-decoration: none;
			background-color: white;
		}
		.uls2>li>a>i{
			font-size:20px;
			display:block;
			margin-bottom:3px;
		}
		.uls2{
			width:60px;
		}
		.uls2 li{
			float:left;
			width:100%;
			text-align:center;
		}
	</style>
       
 
	<ul class="navs navbar-nav gray-bg uls2"   style="position: absolute;left: -1px;top: 50px;text-align: center;">
	  <li  {if $_W['controller']=='shop00'} class="active"{/if}   style="margin-top:-5px;"     ><a   href="{php echo webUrl(commission)}"><i class="fa fa-users"></i><p>分销设置</p></a></li></br>
        {ifp 'goods'}<li {if $_W['controller']=='goods00'} class="active"{/if}><a href="{php echo webUrl('diypage')}"><i class="fa fa-gavel"></i><p>店铺装修</p></a></li></br>{/if}
        {ifp 'member'}<li {if $_W['controller']=='member00'} class="active"{/if}><a href="{php echo webUrl('groups')}"><i class="fa fa-credit-card"></i><p>拼团设置</p></a></li></br>{/if}
		
		{ifp $plugin['identity']}
		 {ifp 'order'}<li {if $_W['controller']=='order00'} class="active"{/if}><a href="{php echo webUrl('creditshop')}"><i class="fa fa-gift"></i><p>积分商城</p></a></li></br>{/if}
			{/if}
        <!-- {ifp 'order'}<li {if $_W['controller']=='order00'} class="active"{/if}><a href="{php echo webUrl('poster')}"><i class="fa fa-file-powerpoint-o"></i><p>超级海报</p></a></li></br>{/if} -->
     
        <!-- {ifp 'sale'}<li {if $_W['controller']=='sale00'} class="active"{/if}><a href="{php echo webUrl('postera')}"><i class="fa fa-file-audio-o"></i><p>活动海报</p></a></li></br>{/if} -->
    
        {ifp 'finance'}<li {if $_W['controller']=='finance00'} class="active"{/if}><a href="{php echo webUrl('taobao')}"><i class="fa fa-github-alt"></i><p>商品助手</p></a></li></br>{/if}
		
		 {ifp 'member'}<li {if $_W['controller']=='member00'} class="active"{/if}><a href="{php echo webUrl('merch')}"><i class="fa fa-user-plus"></i><p>多 商 户</p></a></li></br>{/if}
		 
		  {ifp 'member'}<li {if $_W['controller']=='member00'} class="active"{/if}><a href="{php echo webUrl('globonus')}"><i class="fa fa-skype"></i><p>全民股东</p></a></li></br>{/if}
		

        {ifp 'statistics.sale'}<li {if $_W['controller']=='statistics00'} class="active"{/if}><a href="{php echo webUrl('article')}"><i class="fa fa-youtube-square"></i><p>文章营销</p></a></li></br>{/if}
       <li {if $_W['controller']=='plugins00'} class="active"{/if}><a href="{php echo webUrl('exhelper')}"><i class="fa fa-dropbox"></i><p>快递打印</p></a></li></br>

        {if p('diypage')}<li><a href="{php echo webUrl('diyform')}"><i class="fa fa-linkedin-square"></i><p>DIY 表单</p></a></li></br>{/if}


      	{ifp 'sysset'}<li {if $_W['controller']=='sysset00'} class="active"{/if}><a href="{php echo webUrl('qa')}"><i class="fa fa-retweet"></i><p>帮助中心</p></a></li></br>{/if}

    </ul>
	 {/if}
	
	
	
	<style>
		.navbar-right li{
			width:100%;
		}
		.header-wrapper>.navbar-right>.dropdown{
			display: block;
			font-weight: 700;
			color: #333;
			width:100%;
			margin-top: -5px;
			transition: all .15s ease-in-out;
		}
		.header-wrapper>.navbar-right li a {
			display: block;
			font-weight: 700;
			color: #333;
			width: 100%;
			height: 35px;
			padding: 0px 0 3px;
			margin-top: -6px;
			transition: all .15s ease-in-out;
		}
		.header-wrapper .navbar-right .dropdown-menu  li a{
			display:block;
			height:100%;
			width:100%;
			margin-left:20%;
		}
		.header-wrapper .navbar-right .dropdown-menu li{
			padding:18px 0px;
			
		}
		.header-wrapper .navbar-right .dropdown-menu {
			min-width:100px;
			border-radius: 4px 4px;
			border: 1px solid rgba(0,0,0,.15);
			-webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175);
			box-shadow: 0 6px 12px rgba(0,0,0,.175);
		}
		
		.header-wrapper .navbar-right .dropdown-menu li:hover,.header-wrapper .navbar-right .dropdown-menu li a:hover{
			background-color: #e5e5e5;
		}
		.page-menubar li {
			width: 180px;
			height: 100%;
			border-right: 1px solid #eee;
			background-color: #fbfbfb;
			z-index: 1;
		}
		.size34 {
			width: 34px;
			height: 34px;
			display:inline-block;
			vertical-align:middle;
		}
		.btn-primary:hover{
			color:white!important;
		}
	</style>
	<?php 
		$a=$_W['uniacid'];
		$session_key = '1b1f___merch_' . $a . '_session';
	?>
	
    <ul class="nav navbar-top-links navbar-right">
        <li class="dropdown">
            <a aria-expanded="false" role="button" href="#" class="dropdown-toggle" data-toggle="dropdown" style="position:relative;" onclick="$(this).find('span').toggleClass('deg180')">
				<img  alt="图片" class="avatar size34 img-circle" ng-src="https://ms.wrcdn.com/2017/07/21/FlPBEWAIMSWk80Gw7bZrIXed8ueD.jpg" src="https://ms.wrcdn.com/2017/07/21/FlPBEWAIMSWk80Gw7bZrIXed8ueD.jpg">
				
				<name style="vertical-align:middle;width: 80px;white-space:nowrap;overflow:hidden;text-overflow: ellipsis;display: inline-block;text-align: center">{$_W['uniaccount']['name']}</name>
                <span class="caret" style="position: absolute;top: 15px;right: 12px;"></span></a>
            <ul role="menu" class="dropdown-menu spe clearfix">
			<?php if(!$_COOKIE[$session_key]){?>
                <li><a href="{php echo webUrl('sysset/account')}"><i class="icon icon-similar"></i>  切换公众号</a></li>
				
                {if $_W['role'] == 'manager' || $_W['role'] == 'founder'}
                <li><a href="./index.php?c=account&a=post&uniacid={$GLOBALS['_W']['uniacid']}" target="_blank"><i class="icon icon-wechat"></i>  编辑公众号</a></li>
				
                <li><a href="./index.php?c=profile&a=payment&" target="_blank"><i class="icon icon-pay"></i>  支付参数</a></li>
                {/if}
				
             <!--   <li><a href="./index.php?c=utility&a=emulator&" target="_blank"><i class="icon icon-machinery"></i>  模拟测试</a></li>-->
		{ifp 'perm'}
		
		<li style="borr"><a href="{php echo webUrl('perm')}"><i class="icon icon-person2"></i> 权限管理</a></li>
		{/if}
		
     {if $_W['role'] == 'founder'}
	<li><a href="{php echo webUrl('system')}"><i class="icon icon-settings"></i> 系统管理</a></li>
	<li><a href="{php echo webUrl('system/auth/upgrade')}"><i class="icon icon-down"></i> 系统更新</a></li>
	{/if}
	
                <li><a href="./index.php?c=user&a=profile&" target="_blank"><i class="icon icon-lock"></i>  修改密码</a></li>
                <li><a href="./index.php?c=account&a=display&" target="_blank"><i class="icon icon-back"></i>  返回系统</a></li>
				
			<?php }else{ ?>
			<li><a href="{php echo webUrl('sysset/account')}"><i class="icon icon-similar"></i>  查看公众号</a></li>
                <li><a href="./index.php?c=account&a=tuichu&" ><i class="icon icon-back"></i>  退出系统</a></li>
			<?php }?>
            </ul>
        </li>
    </ul>

    {else}
    <ul class="nav navbar-nav    gray-bg">

        <!--<li {if $_W['current_menu']==''} class="active"{/if}><a href="{php echo webUrl('system')}"> 首页</a></li>-->
        <li {if $_W['current_menu']=='plugin'} class="active"{/if}><a href="{php echo webUrl('system/plugin')}"> 应用</a></li>
        <li {if $_W['current_menu']=='copyright'} class="active"{/if}><a href="{php echo webUrl('system/copyright')}">版权</a></li>
        <li {if $_W['current_menu']=='data'} class="active"{/if}><a href="{php echo webUrl('system/data')}">数据</a></li>
        <li {if $_W['current_menu']=='site'} class="active"{/if}><a href="{php echo webUrl('system/site')}">网站</a></li>
        <li {if $_W['current_menu']=='auth'} class="active"{/if}><a href="{php echo webUrl('system/auth')}">授权</a></li>
    </ul>
    <ul class="nav navbar-top-links navbar-right">
        <li>
            <a  href="{php echo webUrl()}" > 返回商城</a>
        </li>
    </ul>
    {/if}
</div>
</nav>				
</div>
<script>
	$(document).ready(function(){
		$('.uls2').on('click','li',function(){
			$(this).addClass('active');
		})
		console.log(1);
		var height=$(document).height()-51;
		$('.uls2').css("height",height+'px');
		$('.yingyong').css("height",height+'px');
		
	})
</script>
<style>
.page-content::-webkit-scrollbar  
{  
	opacity:0;
    width: 16px;  
    height: 16px;  
    background-color: #F5F5F5;  
} 
.menu-header {
	color:#333;
	width:100%;
	font-weight: 700;
	padding: 20px 20px 10px;
    font-size: 14px;
	text-align:left;
	margin-left:10%;
    margin-bottom: 5px;
	line-height: 1.42857143;
}

.page-menubar ul li{
    width: 180px;
    height: 100%;
    border-right: 1px solid #eee;
    background-color: #fbfbfb;
    z-index: 1;
}
.page-menubar li {
}
.page-menubar li a {
    width: 180px;
    padding: 8px 20px;
    font-size: 14px;
    color: #333;
    border: 1px solid #fbfbfb;
    border-right: 1px solid #eee;
    border-left: 3px solid #fbfbfb;
}
.yingyong li a {
    text-align: left;
    padding-left: 20%!important;
}
.yingyong li a:hover {
    background: #eee;
	color:
    border: 1px solid #eee;
    border-right: 1px solid #eee;
    border-left: 3px solid #eee;
}
.page-menubar ul li a {
    width: 180px;
    padding: 8px 20px;
    font-size: 14px;
    color: #333;
    border: 1px solid #fbfbfb;
    border-right: 1px solid #eee;
    border-left: 3px solid #fbfbfb;
}

.menu-head-top li a{
	width: 180px;
    padding: 8px 20px;
    font-size: 14px;
    color: #333;
    border: 1px solid #fbfbfb;
    border-right: 1px solid #eee;
    border-left: 3px solid #fbfbfb;
}
	.menu-head-top li i, .yingyong ul li i {
		margin-right: 5px;
		color: #999;
		width: 20px;
		display: inline-block;
	}
	.menu-head-top li i, .yingyong ul .active i {
		margin-right: 5px;
		color: #f90;
		width: 20px;
		display: inline-block;
	}
.menu-head-top .active a {
    width: 180px;
    padding: 8px 20px;
    font-size: 14px;
    color: #333;
    border: 1px solid #fbfbfb;
    border-right: 1px solid #eee;
    border-left: 3px solid #fbfbfb;
}
.page-menubar .active a {
    color: #f60;
    background: #fff!important;
    font-weight: 700;
    border: 1px solid #eee;
    border-right: 1px solid #fff;
    border-left: 3px solid #f60;
}
.special{
    display: block;
    width: 100%;
    padding-left: 260px;
}
.yingyong{
    z-index: 100;
    margin-top: 2px;
    position: absolute;
    margin-left: 60px;
    margin-right: -400px;
}
.menu-head-top li i,.yingyong ul li i{
	margin-right:5px;
}
.panel-body{
	text-align:left!important;
}
</style>
<div class='wrapper main-wrapper clearfix wrapper-content '>
{if $no_left}
    <div class="page-content" style="style:1000px;">
{else}
    <div class="page-menubar yingyong" style="">
{php echo $this->frame_menus()}
    </div>
    <div class="page-content special" style="">
{/if}
        